#ifndef __ARM_SDK_ERR__
#define __ARM_SDK_ERR__

#include "main.h"

enum {
    EXIT = -100,
    COMMAND_ERR,
    UART_CONFIG_ERR,
    FAILURE = -1,
    SUCCESS = 0,
};

#define COMMAND_ERR() \
{ \
    PRINTF(" * invalid command.\n"); \
    return COMMAND_ERR; \
}

#define MEM_LLOC_ERR(ret) \
{ \
    ARM_SDK_DEBUG("malloc command string memory failed\n"); \
    return ret; \
}



#endif // __ARM_SDK_ERR__


